package cn.mesmile.workflow.behavior;

import org.flowable.bpmn.model.UserTask;
import org.flowable.common.engine.impl.el.ExpressionManager;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.impl.bpmn.behavior.UserTaskActivityBehavior;
import org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl;
import org.flowable.task.service.TaskService;
import org.flowable.task.service.impl.persistence.entity.TaskEntity;

import java.util.List;

/**
 * @author zb
 * @Description
 */
public class WorkFlowUserTaskActivityBehavior extends UserTaskActivityBehavior {

    public WorkFlowUserTaskActivityBehavior(UserTask userTask) {
        super(userTask);
    }

    @Override
    protected void handleAssignments(TaskService taskService, String assignee, String owner, List<String> candidateUsers,
                                     List<String> candidateGroups, TaskEntity task, ExpressionManager expressionManager, DelegateExecution execution,
                                     ProcessEngineConfigurationImpl processEngineConfiguration){

        // TODO 统一拦截分配设置审批人
        //////////////////////统一拦截分配设置审批人//////////////////////////


        super.handleAssignments(taskService, assignee, owner, candidateUsers, candidateGroups, task, expressionManager,execution,processEngineConfiguration);

    }


}
